-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Enable Swagger/Scalar Documentation #982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables Swagger UI and Scalar API Reference to be available in all environments, not just Development. The OpenAPI documentation endpoints are moved out of the environment-specific conditional block, making API documentation accessible regardless of the hosting environment.
Key Changes:
- Added OpenAPI document metadata (title, version, description) to improve API documentation
- Removed environment-based conditional that restricted Swagger UI to Development only
- Configured explicit paths for Swagger UI (
/swagger) and OpenAPI spec (/openapi/{documentName}.json)
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Clean.Architecture.Web/Program.cs | Added document settings configuration for OpenAPI specification including title, version, and description |
| src/Clean.Architecture.Web/Configurations/MiddlewareConfig.cs | Removed Development environment check for Swagger/Scalar UIs and added explicit path configurations for both documentation tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
|
@ardalis , please review |
Uh oh!
There was an error while loading. Please reload this page.